import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/risk'
// 列表
export const getCasesList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/cases/index',
    method: 'post',
    data
  })
// 详情
export const getApproval = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/approval/index',
    method: 'post',
    data
  })

// 关闭案件
export const closeCases = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/cases/close',
    method: 'post',
    data
  })
// 详情操作记录
export const getOplogs = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/cases/oplogs',
    method: 'post',
    data
  })
